<?php

    class ElementTypeSelect extends Element {
        public function Render() {
            $types = array(
                'INT',
                'DECIMAL',
                'DEC',
                'DOUBLE',
                'TINYINT',
                'BOOL',
                'BOOLEAN',
                'SMALLINT',
                'MEDIUMINT',
                'INTEGER',
                'BIGINT',
                'LONGINT',
                'FLOAT',
                'CHAR',
                'SET',
                'BINARY',
                'VARCHAR',
                'VARBINARY',
                'TEXT',
                'TINYBLOB',
                'TINYTEXT',
                'BLOB',
                'MEDIUMBLOB',
                'MEDIUMTEXT',
                'LONGTEXT',
                'LONGBLOB',
                'DATETIME',
                'DATE',
                'TIMESTAMP',
                'ENUM',
            );

            sort( $types );

            ?><select name="type"><?php
            foreach ( $types as $type ) {
                ?><option><?php
                echo $type;
                ?></option><?php
            }
            ?></select><?php
        }
    }
?>
